vue-devui 1.6.29 → 1.6.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9172,7 +9172,12 @@ class MDRenderService {
9172
9172
  });
9173
9173
  }
9174
9174
  onIgnoreTagAttr(tag, name, value, isWhiteAttr) {
9175
- if (!isWhiteAttr && (name === "id" || tag === "span" && name === "style")) {
9175
+ if (!isWhiteAttr && (name === "id" || tag === "span" && name === "style" || tag === "a" && name === "href")) {
9176
+ return name + "=" + value;
9177
+ }
9178
+ }
9179
+ onTagAttr(tag, name, value, isWhiteAttr) {
9180
+ if (isWhiteAttr && (tag === "a" && name === "href")) {
9176
9181
  return name + "=" + value;
9177
9182
  }
9178
9183
  }
@@ -9204,6 +9209,7 @@ class MDRenderService {
9204
9209
  html = filterXSS(html, {
9205
9210
  whiteList: this.xssWhiteList,
9206
9211
  onIgnoreTagAttr: this.onIgnoreTagAttr,
9212
+ onTagAttr: this.onTagAttr,
9207
9213
  css: {
9208
9214
  whiteList: Object.assign({}, this.cssWhiteList, {
9209
9215
  top: true,